Repository navigation
[PNE-9755] Warn on import of removed generative design and sampling names - #1077
Merged
Conversation
…-fallback Tolerate unknown ingestion error types
AGENTS.md gives coding agents the repo layout, the setup, lint, and test commands that CI runs, and the conventions a PR must follow. CLAUDE.md imports it for Claude Code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ve-generative-design-sampling-fixes # Conflicts: # src/citrine/__version__.py
…ames Version 5.3.x let scripts import the execution, result and collection classes of both features. The first removal commit deleted them, so those imports raised ImportError. Every name a released version exported now imports again from its old module. A module __getattr__ supplies each one and emits a DeprecationWarning that names 6.0.0 as the removal version. The warning points at the importing line, so Python shows it in a script by default. Constructing a removed class, or reading a method from it, raises FeatureRemovedError with the platform's message. FingerprintType and StructureExclusion keep their members. citrine._utils.removed_features holds the stand-ins. A test fails once the version reaches 6.0.0, to prompt their deletion. Version 5.4.0, after merging main at 5.3.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kroenlein
marked this pull request as ready for review
November 18, 2026 15:40
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add AGENTS.md for coding agents
…ve-generative-design-sampling-fixes # Conflicts: # src/citrine/__version__.py
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dleblanc
deleted the
feature/PNE-9755-remove-generative-design-sampling-fixes
branch
November 18, 2026 16:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR merges into #1074, for PNE-9755. It changes how #1074 retires generative design and design space sampling.
#1074 deleted the execution, result and collection classes, so a script that imported one failed with
ImportError. This PR brings back every name that version 5.3.1 exported, at its old import path:DeprecationWarningthat names 6.0.0 as the removal versionFeatureRemovedErrorwith the platform's messagetriggerorresultsFeatureRemovedErrorproject.generative_design_executionsordesign_space.sample_design_space_executionsFeatureRemovedError, with no network call, as in #1074FingerprintTypeandStructureExclusionkeep their members.import citrinedoes not emit a new warning, because each legacy module supplies its names through a module__getattr__. The warning points at the importing line, so Python shows it in a script by default.citrine._utils.removed_featuresholds every stand-in. A test fails once the version reaches 6.0.0, and its message lists what to delete.This PR also merges
main, which had reached 5.3.1 and conflicted with #1074's 5.3.0. No import that worked in 5.3.x breaks, so the version moves to 5.4.0.PR Type
Adherence to team decisions
🤖 Generated with Claude Code